package com.power.sifa.respond.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.respond.model.Apl_respond;
import com.power.sifa.respond.model.pageInfo.Apl_respondPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  行政应诉申请 Feign
 */
public interface IApl_respondFeign {

    /**
     * 行政应诉申请分页列表
     */
    @PostMapping("/apl_respond/list")
    ResponseDTO list(@RequestBody Apl_respondPageInfo apl_respondPageInfo);

    /**
    * 查看行政应诉申请
    */
    @GetMapping("/apl_respond/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除行政应诉申请
    */
    @PostMapping("/apl_respond/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看行政应诉申请 复合主键使用
    // */
    //@PostMapping("/apl_respond/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_respond.Apl_respondPK pk);

    /**
     * 修改或保存行政应诉申请
     */
    @PostMapping("/apl_respond/save")
    ResponseDTO save(@RequestBody Apl_respond apl_respond);

    ///**
    // * 删除行政应诉申请 复合主键使用
    // */
    //@PostMapping("/apl_respond/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_respond.Apl_respondPK pk);

    /**
     * 批量删除行政应诉申请
     */
    @PostMapping("/apl_respond/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_respond/output")
    void output(HttpServletResponse response, @RequestBody Apl_respondPageInfo apl_respondPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_respond/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_respond/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;

    /**
     *	行政应诉关联查询主表的数据
     */
    @PostMapping("/apl_respond/findList")
    ResponseDTO findList(@RequestBody Apl_respondPageInfo pageInfo);

}
